<%-- 
    Document   : regIndex
    Created on : 17.11.2013, 19:41:50
    Author     : palo
--%>

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<f:message var="nadpis" key="top.main"/>


<s:layout-render name="/mainLayout.jsp" nadpis="${nadpis}">
    <s:layout-component name="body">
        <s:messages/>
            <shiro:hasRole name="ROLE_ADMIN">
                <p><f:message key="login.admin"/></p>
            </shiro:hasRole>  

            <shiro:hasRole name="ROLE_REGISTERED">
                <p> <shiro:user><f:message key="reg.welcomeName"/>&nbsp;<strong><shiro:principal /></strong>,</shiro:user>
                    <f:message key="reg.welcome"/></p>
            </shiro:hasRole>
    </s:layout-component>
</s:layout-render>
